#include <stdio.h>

int main(void)
{
    int year;
    printf("输入年份：\n");
    scanf("%d", &year);

    if (year < 0) {
        printf("数据范围错误！\n");
        return 0;
    }

    if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
        printf("%d 年是闰年\n", year);
    else 
        printf("%d 年不是闰年\n", year);
      
    return 0;
}
